#--------------------服mysql务器配置-----------------------
#连接服务器
DIALECT = 'mysql'
DRIVER ='pymysql'
HOSTNAME = '192.168.101.4'
# HOSTNAME = '172.168.71.135'
PORT     = '3306'
DATABASE = 'restaurant'
USERNAME = 'root'
PASSWORD = 'Huangzhe.2'

#python3中的formate格式，构建连接字符串
DB_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8'.format(DIALECT,DRIVER,USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI

#取消警告
SQLALCHEMY_TRACK_MODIFICATIONS = False
# #--------------------服务器配置-----------------------